package model;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;



@Entity
@DiscriminatorValue("F")
public class UserPF extends Users{
	
	private String cpf;
	
	@Temporal(TemporalType.DATE)
	private Date birthdate;
	
	public UserPF(){
	}
	
	public UserPF(String nome, String telefone, String address, String username, String password,String role, String cpf, Date datanasc){
		super(nome, telefone,address, username, password,role);
		this.cpf = cpf;
		this.birthdate = datanasc;
	}

	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	public Date getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Date datanasc) {
		this.birthdate = datanasc;
	}
}
